From e326046d5ab199826d45ec5923bf1ac6abdbd281 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Mon, 7 Jul 2008 00:28:37 +0000 Subject: [PATCH] Add a note that cairo contexts cannot be cached for handling expose * gdk/gdkcairo.c (gdk_cairo_create): Add a note that cairo contexts cannot be cached for handling expose events. Proposed by Behdad Esfahbod. svn path=/trunk/; revision=20800 --- ChangeLog | 8 ++++++++ gdk/gdkcairo.c | 6 ++++++ 2 files changed, 14 insertions(+) diff --git a/ChangeLog b/ChangeLog index 303157d366..8bceb019e8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2008-07-06 Matthias Clasen + + Bug 469068 – clarify gdk_cairo_create() + + * gdk/gdkcairo.c (gdk_cairo_create): Add a note that cairo + contexts cannot be cached for handling expose events. + Proposed by Behdad Esfahbod. + 2008-07-06 Matthias Clasen Bug 507953 – gtk_tree_view_set_tooltip_column() shows markups diff --git a/gdk/gdkcairo.c b/gdk/gdkcairo.c index 4c2d91ac0b..6e83f53a37 100644 --- a/gdk/gdkcairo.c +++ b/gdk/gdkcairo.c @@ -29,6 +29,12 @@ * * Creates a Cairo context for drawing to @drawable. * + * + * Note that due to double-buffering, Cairo contexts created + * in a GTK+ expose event handler cannot be cached and reused + * between different expose events. + * + * * Return value: A newly created Cairo context. Free with * cairo_destroy() when you are done drawing. * -- 2.30.2